$(function () {
    var boxTop = $(".brand").offset().top;
    $(window).scroll(function () {
        // $(document).scrollTop();
        if ($(document).scrollTop() >= boxTop) {
            $(".goBack ").fadeIn();
        } else {
            $(".goBack ").fadeOut();
        }
        $(".goBack ").click(function () {
            $("body,html").stop().animate(
                {
                    scrollTop: 0
                }
            )
        })
    })
})
window.addEventListener('load', function () {
    var swiper = new Swiper(".mySwiper", {
        spaceBetween: 30,
        centeredSlides: true,
        autoplay: {
            delay: 1500,
            disableOnInteraction: false,
        },
        pagination: {
            el: ".swiper-pagination",
            clickable: true,
        },
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev",
        },
    });
})